#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>

int main()
{
	int a, b, c;
	int max, mid, min;
	scanf("%d %d %d", &a, &b, &c);
	if (a > b && a > c)
	{
		max = a;
		if (b > c)
		{
			mid = b;
			min = c;
		}
		else
		{
			mid = c;
			min = b;
		}
	}
	if (b > a && b > c)
	{
		max = b;
		if (a > c)
		{
			mid = a;
			min = c;
		}
		else
		{
			mid = c;
			min = a;
		}
	}
	if (c > b && c > a)
	{
		max = c;
		if (b > a)
		{
			mid = b;
			min = a;
		}
		else
		{
			mid = a;
			min = b;
		}
	}
	printf("%d %d %d", max, mid, min);
	return 0;
}